package com.korustar.autumnal;

import java.io.File;

import org.junit.Test;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;

import com.korustar.autumnal.codemodel.CodeModelContainerModel;
import com.korustar.autumnal.codemodel.CodeModelDefaultContainer;


public class AutumnalTest3 {

	@Test
	public void testX() throws Exception {
		/*<autumnal applicationContext="src/test/resources/ApplicationContext-testUtilNamespace.xml"
	    	outputDir="src/test/out/"
	    	className="MyApplicationContext"
	    	   /> */

		File file = new File("src/test/resources/ApplicationContext-testUtilNamespace.xml");
		BeanDefinitionRegistry registry = XmlBeanInterpretation.getBeanRegistry(file);

		CodeModelContainerModel model = new CodeModelDefaultContainer().startContainer().getBuilder().build(registry);
		System.out.println(model.getOutput());
		
	}
}
